<?php

class Application_Form_ProjectTime extends Zend_Form
{

    public function init()
    {
        $jam_kerja = new Zend_Form_Element_Text('jam_kerja');
        $jam_kerja->setLabel('Working Time  (hours / day)')->addValidator('Digits')->setAttrib('maxLength', '2');
        
        $rencana_waktu_pelaksanaan = new Zend_Form_Element_Text('rencana_waktu_berlangsung');
        $rencana_waktu_pelaksanaan->setLabel('Time Planned  (hours)')->setValue(0)->setAttrib('disabled', true);
        
        $waktu_terlaksana = new Zend_Form_Element_Text('waktu_terlaksana');
        $waktu_terlaksana->setLabel('Time Spent  (hours)')->setValue(0)->setAttrib('disabled', true);
        
        $waktu_kurang = new Zend_Form_Element_Text('waktu_kurang');
        $waktu_kurang->setLabel('Time Waiting  (hours)')->setValue(0)->setAttrib('disabled', true);
        
        $this->addElements(array( $jam_kerja, $rencana_waktu_pelaksanaan, $waktu_terlaksana, $waktu_kurang));
    }


}

